package pojo;

import java.util.Date;

/**
 * Message entity. @author MyEclipse Persistence Tools
 */

public class Message implements java.io.Serializable {

	// Fields

	private Integer id;
	private User userByReceiver;
	private User userBySender;
	private Good good;
	private String message;
	private Date time;
	private String contact;

	// Constructors

	/** default constructor */
	public Message() {
	}

	/** minimal constructor */
	public Message(String message) {
		this.message = message;
	}

	/** full constructor */
	public Message(User userByReceiver, User userBySender, Good good,
			String message, Date time, String contact) {
		this.userByReceiver = userByReceiver;
		this.userBySender = userBySender;
		this.good = good;
		this.message = message;
		this.time = time;
		this.contact = contact;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public User getUserByReceiver() {
		return this.userByReceiver;
	}

	public void setUserByReceiver(User userByReceiver) {
		this.userByReceiver = userByReceiver;
	}

	public User getUserBySender() {
		return this.userBySender;
	}

	public void setUserBySender(User userBySender) {
		this.userBySender = userBySender;
	}

	public Good getGood() {
		return this.good;
	}

	public void setGood(Good good) {
		this.good = good;
	}

	public String getMessage() {
		return this.message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Date getTime() {
		return this.time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public String getContact() {
		return this.contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

}